package com.linzm.creationaltype.builder04.meal;

import com.linzm.creationaltype.builder04.item.ChickenBurger;
import com.linzm.creationaltype.builder04.item.Coke;
import com.linzm.creationaltype.builder04.item.Pepsi;
import com.linzm.creationaltype.builder04.item.VegBurger;

/**
 * @Author zimingl
 * @Date 2023/4/15 20:55
 * @Description: MealBuilder
 */
public class MealBuilder {
    public Meal prepareVegMeal() {
        Meal meal = new Meal();
        meal.addItem(new VegBurger());
        meal.addItem(new Coke());
        return meal;
    }

    public Meal prepareNonVegMeal() {
        Meal meal = new Meal();
        meal.addItem(new ChickenBurger());
        meal.addItem(new Pepsi());
        return meal;
    }
}
